package com.wunu.smartlock1.net.response;

import com.google.gson.annotations.SerializedName;

public class LockEvent {

    public final static int EVENT_SUCCESS = 1;
    public final static int EVENT_FAILED = -1;

    private long id;
    private String time;//2018-03-14T06:35:57.219
    private int event;
    private String name;

    @SerializedName("photo")
    private String photoUrl;
    private int group;
    private int state;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getEvent() {
        return event;
    }

    public void setEvent(int event) {
        this.event = event;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public int getGroup() {
        return group;
    }

    public void setGroup(int group) {
        this.group = group;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "LockEvent{" +
                "id=" + id +
                ", time='" + time + '\'' +
                ", event=" + event +
                ", name='" + name + '\'' +
                ", photoUrl='" + photoUrl + '\'' +
                ", group=" + group +
                ", state=" + state +
                '}';
    }
}
